package com.mall.client.user;

import java.util.List;

import com.mall.pojo.UserLevel;

public interface UserLevelService {

	int insertUserLevel(UserLevel userLevel);


	UserLevel getUserLevelByPrice(Long sumPrice,Integer commOnlyKey);
	
	/**
	 * 获得分销商的级别信息
	 * @param level
	 * @param commOnlyKey
	 * @return
	 */
	UserLevel getUserLevelByLevelAndKey(Integer level,Integer commOnlyKey);
	
	/**
	 *根据onlyKey获得分销商等级集合 
	 * @param commOnlyKey
	 * @return
	 */
	List<UserLevel> getUserLevelListByKey(Integer commOnlyKey);
	
	int modifyUserLevel(UserLevel userLevel);
	
	UserLevel getUserLevelById(Long userLevelId);
	
	int replaceUserLevelList(List<UserLevel> userLevelList);

}
